﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using SmartProject.Data;

namespace SmartProject.UI
{
    public class UserProfile : Entity
    {
        public UserProfile()
        {
            DataParameter[] dataParameters = new DataParameter[5];

            dataParameters[0] = new DataParameter("ProfileId", DataType.Integer);
            dataParameters[1] = new DataParameter("ProfileName", 50);
            dataParameters[2] = new DataParameter("UserId", DataType.Integer);
            dataParameters[3] = new DataParameter("ProfileStringValue", 30);
            dataParameters[4] = new DataParameter("ProfileIntValue", DataType.Integer);

            base.Initialize(dataParameters);
        }

        public override void Load()
        {
            base.Load("smartProject_GetUserProfile");
        }

        public override void Save()
        {
            base.Run("smartProject_AddUserProfile");
        }

        public override void Update()
        {
            base.Run("smartProject_UpdateUserProfile");
        }

        public override void Remove()
        {
            throw new NotImplementedException();
        }
    }
}
